package com.liumuxian.user.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "tb_admin")
public class Admin {
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "nickname",length = 20)
    private String nickname;
    @Column(name = "account",length = 20)
    private String account;
    @Column(name = "password",length = 100)
    private String password;
    @Column(name = "lastdate")
    private Date lastdate;//最后登陆日期
    @Column(name = "createdate")
    private Date createdate;//创建时间
    @Column(name = "updatedate")
    private Date updatedate;//创建时间
    @Column(name = "state",length = 1)
    private String state;//用户状态
}
